package com.bcu.alumnus.repo;

import com.bcu.alumnus.entity.Activity;
import com.bcu.alumnus.entity.Knowledge;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface KnowledgeRespository extends JpaRepository<Knowledge,Integer> {


    Knowledge getKnowledgeByKnowledgeId(int knowledgeId);

    @Modifying
    int deleteKnowledgeByKnowledgeId(int knowledgeId);

    @Override
    List<Knowledge> findAll();

    List<Knowledge> getKnowledgesByKnowledgeUserId(String knowledgeUserId);

    List<Knowledge> getKnowledgesByKnowledgePartId(int partId);


}
